<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>SL</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="icon" href="favicon.ico">
	<link rel="stylesheet" href="__LAY__/css/layui.css" media="all" />
	<link rel="stylesheet" href="__CSS__/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="__FONT__/css/font-awesome.min.css" media="all" />
	<link rel="stylesheet" href="__CSS__/main.css" media="all" />
</head>
<body class="main_body">
	<div class="layui-layout layui-layout-admin">
		<!-- 顶部 -->
		<div class="layui-header header">
			<div class="layui-main">
				<a href="#" class="logo">后台管理</a>
			    <!-- 天气信息 -->
			    <div class="weather" pc>
			    	<div id="tp-weather-widget"></div>
					<script>(function(T,h,i,n,k,P,a,g,e){g=function(){P=h.createElement(i);a=h.getElementsByTagName(i)[0];P.src=k;P.charset="utf-8";P.async=1;a.parentNode.insertBefore(P,a)};T["ThinkPageWeatherWidgetObject"]=n;T[n]||(T[n]=function(){(T[n].q=T[n].q||[]).push(arguments)});T[n].l=+new Date();if(T.attachEvent){T.attachEvent("onload",g)}else{T.addEventListener("load",g,false)}}(window,document,"script","tpwidget","//widget.seniverse.com/widget/chameleon.js"))</script>
					<script>tpwidget("init", {
                        "flavor": "slim",
                        "location": "WX4FBXXFKE4F",
                        "geolocation": "enabled",
                        "language": "zh-chs",
                        "unit": "c",
                        "theme": "chameleon",
                        "container": "tp-weather-widget",
                        "bubble": "enabled",
                        "alarmType": "badge",
                        "color": "#FFFFFF",
                        "uid": "U5450F7E3D",
                        "hash": "37f149fde3868b1200ebbbff1d66b50d"
                    });
                    tpwidget("show");</script>
			    </div>
			    <!-- 顶部右侧菜单 -->
			    <ul class="layui-nav top_menu">
			    	<li class="layui-nav-item showNotice" id="showNotice" pc>
						<a href="javascript:;"><i class="iconfont icon-gonggao"></i><cite>系统公告</cite></a>
					</li>
			    	<li class="layui-nav-item" mobile>
			    		<a href="javascript:;" data-url="page/user/changePwd.html"><i class="iconfont icon-shezhi1" data-icon="icon-shezhi1"></i><cite>设置</cite></a>
			    	</li>
			    	<li class="layui-nav-item" mobile>
			    		<a href="javascript:;"><i class="iconfont icon-loginout"></i> 退出</a>
			    	</li>
					<li class="layui-nav-item lockcms" pc>
						<a href="javascript:;"><i class="iconfont icon-lock1"></i><cite>锁屏</cite></a>
					</li>
					<li class="layui-nav-item" pc>
						<a href="javascript:;">
							<img src="__IMG__/userface4.jpg" class="layui-circle" width="35" height="35">
							<cite>Admin</cite>
						</a>
						<dl class="layui-nav-child">
							<dd><a href="javascript:;" data-url="page/user/userInfo.html"><i class="iconfont icon-zhanghu" data-icon="icon-zhanghu"></i><cite>个人资料</cite></a></dd>
							<dd><a href="javascript:;" data-url="page/user/changePwd.html"><i class="iconfont icon-shezhi1" data-icon="icon-shezhi1"></i><cite>修改密码</cite></a></dd>
							<dd><a href="javascript:;" class="outlogin"><i class="iconfont icon-loginout"></i><cite>退出</cite></a></dd>
						</dl>
					</li>
				</ul>
			</div>
		</div>
		<!-- 左侧导航 -->
		<div class="layui-side " id="gloLeft">
			<div class="leftbg"></div>
			<div class="navBar layui-side-scroll" id="leftBar" >
				<ul class="layui-nav layui-nav-tree"  id="gloMenu" lay-shrink="all" style="padding-top: 20px;">
					{volist name="menu" id="vo"}
					<li class="layui-nav-item"><a href="javascript:;">
						<i class="{$vo.style}" aria-hidden="true"></i>
						<cite>{$vo.node_name}</cite></a>
						<dl class="layui-nav-child left_child">
							{volist name="$vo['children']" id="v"}
							<dd>
								<a href="javascript:;" data-url="{:url($v.href_name)}" data-index="{$v.id}">
									<i class="{$v.style}" aria-hidden="true"></i>
									<cite>{$v.node_name}</cite><i class="left-icon layui-icon">&#xe602;</i>
								</a>
							</dd>
							{/volist}
						</dl>
					</li>
					{/volist}
				</ul>
			</div>
		</div>




		<!-- 右侧内容 -->
		<div class="layui-body layui-form">
			<div class="layui-tab marg0" lay-filter="bodyTab">
				<ul class="layui-tab-title top_tab right_top">
					<li class="layui-this" lay-id=""><i class="iconfont icon-computer"></i> <cite>后台首页</cite></li>
				</ul>
				<div class="layui-tab-content clildFrame">
					<div class="layui-tab-item layui-show" data-index="0">
						<iframe src="{:url('index/indexPage')}"></iframe>
					</div>
				</div>
			</div>
		</div>
		<!-- 底部 -->
		<div class="layui-footer footer">
			<p>copyright @2018 版权所有·侵权必究</p>
		</div>
	</div>

	<!-- 锁屏 -->
	<div class="admin-header-lock" id="lock-box" style="display: none;">
		<div class="admin-header-lock-img"><img src="__IMG__/face.jpg"/></div>
		<div class="admin-header-lock-name" id="lockUserName">admin</div>
		<div class="input_btn">
			<input type="password" class="admin-header-lock-input layui-input" placeholder="请输入密码解锁.." name="lockPwd" id="lockPwd" />
			<button class="layui-btn" id="unlock">解锁</button>
		</div>
		<p>请输入“123456”，否则不会解锁成功哦！！！</p>
	</div>

	<!-- 移动导航 -->
	<div class="site-tree-mobile layui-hide"><i class="layui-icon">&#xe602;</i></div>
	<div class="site-mobile-shade"></div>
	<script type="text/javascript" src="__JS__/jquery-3.3.1.min.js"></script>
	<script type="text/javascript" src="__LAY__/layui.js"></script>
	<script src="https://cdn.bootcss.com/limonte-sweetalert2/7.21.1/sweetalert2.all.js"></script>
	<script type="text/javascript" src="__JS__/index.js"></script>
	<script type="text/javascript" src="__JS__/bodyTab.js"></script>
</body>
<script>
    //退出登录
    $(".outlogin").on("click",function() {
        swal({
            title: "确定退成程序吗？",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "确定！",
            cancelButtonText: "取消！",
            closeOnConfirm: false,
            closeOnCancel: false

        })
            .then(function(isConfirm){
                if(isConfirm.value) {
                    $.ajax({
                        type: "POST",
                        url: "{:url('login/outlogin')}",
                        success: function(res){
                            if(1 == res.code){
                                swal({
                                    title: '退出成功!',
                                    timer: 2000
                                }).then(
                                    function (dismiss) {
                                        window.location.href = res.data;
                                    }
                                );
                            }else if(111 == res.code){
                                window.location.reload();
                            }else{
                                layer.alert(res.msg, {title: '友情提示', icon: 2});
                            }
                        }
                    });
                } else {
                    swal("取消！", "没有退出奥!",
                        "error");
                }
            });
    });


</script>
</html>
